#include "rbookmark.h"

RBookmark::RBookmark(QObject *parent) :
    QObject(parent)
{
}

RBookmark::RBookmark(int id, int lineNum, int charIndex,
                     qint64 addTime, QString note,
                     QObject* parent):
    QObject(parent), m_id(id), m_line_num(lineNum),
    m_char_index(charIndex), m_add_time(addTime), m_note(note)
{
}

int RBookmark::bookmarkId() {
    return m_id;
}

void RBookmark::setBookmarkId(int id) {
    m_id = id;
}

int RBookmark::lineNum() {
    return m_line_num;
}

void RBookmark::setLineNum(int lineNum) {
    m_line_num = lineNum;
}

int RBookmark::charIndex() {
    return m_char_index;
}

void RBookmark::setCharIndex(int index) {
    m_char_index = index;
}

qint64 RBookmark::addTime() {
    return m_add_time;
}

void RBookmark::setAddTime(qint64 time) {
    m_add_time = time;
}

QString RBookmark::note() {
    return m_note;
}

void RBookmark::setNote(QString note) {
    m_note = note;
}
